package com.woniuxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.domain.Recordbug;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2021-05-12
 */
public interface RecordbugMapper extends BaseMapper<Recordbug> {
    public List<Recordbug> queryRecordbug(@Param("bug_classify") String classify, @Param("create_time1") Date date1, @Param("create_time2") Date date2);

    public List<Recordbug> queryRecordbugState(@Param("dostate") String dostate, @Param("create_time1") Date date1, @Param("create_time2") Date date2);

    public List<Recordbug> queryRecordbugDegree(@Param("degree") String degree, @Param("create_time1") Date date1, @Param("create_time2") Date date2);

    public List<Recordbug> getSearchInfo(String projectId, String state, String info, int userId);

    public List<Recordbug> queryBugByState(String doState);

    public List<Recordbug> queryBugByNameAndState(@Param("dostate") String doState,@Param("project_name") String projectName);
}
